QuickHelp("Tells the program to create a datatypes object"NL"from a jpeg stream. To create an ilbm picture specify"NL"picture.datatype. This option requires picture datatype v43"NL"and datatypes.library v45! And, of course, the specified"NL"subclass of picturedt must be v43 compatible and provide an encoder."),
GetEntryButton(6),
'EndLine',
'Space',
'BeginLine',
Text3("_Quality") 'TRAT_ID 7',
SliderGadget(1,100,75,7),
QuickHelp("quality of the jpeg stream to create."),
'Space',
Text3('75%') 'TRAT_MinWidth 4 TRAT_ID 77',
'EndLine',
'SpaceS',
'BeginLine',
Text3("_Smoothing") 'TRAT_ID 8',
SliderGadget(0,100,0,8),
QuickHelp("smoothing factor of the jpeg stream to create (0 = no smoothing)"),
'Space',
Text3('0%') 'TRAT_MinWidth 3 TRAT_ID 88',
'EndLine',
'SpaceS',
'BeginLine',
Text3("Scalede_nom") 'TRAT_ID 9',
SliderGadget(1,4,1,9),
QuickHelp("scaling denominator when decompressing a jpeg image."NL"Denominators supported are 1 (default), 2, 4 and 8."NL"Eg. if you want to have an image that is halve of"NL"the size of the original one specify SD=2."),
'Space',
Text3('1') 'TRAT_MinWidth 2 TRAT_ID 99',
'EndLine',
'SpaceS',
'BeginLine',
Text3("Scalenum") 'TRAT_ID 13',
SliderGadget(1,1,1,13),
QuickHelp("scaling numerator when decompressing a jpeg image."NL"The jpeg code only supports a value of 1 (default) currently."),
'Space',
Text3('1'),
'EndLine',
'Space',
'EndArray',
'HorizGroupAC',
'BeginLine',
Text3("D_ctmethod: ") 'TRAT_ID 14',
CycleGadget(DCTMETHOD,0,14),
QuickHelp("allows to specify the dct method used for de-/encoding."NL"ISLOW: integer, slow, more accurate (default)."NL"IFAST: integer, fast, lessaccurate."NL"FLOAT: float, fast on fast machines, most accurate."),
'SpaceB',
Text3("_Blocksmoothing: ") 'TRAT_ID 10',
CheckBox(10),
QuickHelp("do block smoothing when decompressing."),
'SpaceB',
Text3("_Progressive: ") 'TRAT_ID 11',
CheckBox(11),
QuickHelp("create progressive jpeg."),
'SpaceB',
Text3("Qui_et: ") 'TRAT_ID 12',
CheckBox(12),
QuickHelp("suppresses any message except error messages."),
'SpaceB',
Text3("_Grayscale: ") 'TRAT_ID 15',
CheckBox(15),
QuickHelp("create grayscale image."),
'EndLine',
'EndGroup',
'Space',
Button("Con_vert",16),
'Space EndGroup Space EndGroup EndProject'
/*
** Unterbrechungssignale
*/
SIGNAL ON break_c
SIGNAL ON failure
SIGNAL ON halt
SIGNAL ON ioerr
SIGNAL ON syntax
app = TR_CREATEAPP('TRCA_Name' '"'appname'"',
'TRCA_LongName' '"'applongname'"',
'TRCA_Info' '"'appinfo'"',
'TRCA_Version' '"'appversion'"',
'TRCA_Release' '"'apprelease'"',
'TRCA_Date' '"'appdate'"',
'TAG_END')
IF app ~= '00000000'x THEN DO
window = TR_OPENPROJECT(app,windowtags)
WindowProject=C2D(window) /* zum Locken des Fensters bei About */
IF window ~= '00000000'x THEN DO
nummer = 0
DO WHILE nummer = 0
CALL TR_WAIT(app,'')
DO WHILE TR_HANDLEMSG(app,'event')
/******************
*** CLOSEGADGET ***
*******************/
IF event.trm_class = 'TRMS_CLOSEWINDOW' THEN nummer = -1
IF event.trm_class = 'TRMS_ACTION' THEN DO
SELECT
WHEN event.trm_id = 16 THEN CALL _Convert
WHEN event.trm_id = 2 THEN DO
infile = TR_GETATTRIBUTE(window,1,'TROB_String')
IF infile = " " THEN infile = "INFILE"
IF _FileRequest(infile "Select source file") = 1 THEN DO